﻿@model FILSTARTUPS_CMS.Models.Role

<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Ajax.BeginForm("Edit", "Role", null,
       new AjaxOptions
       {
           UpdateTargetId = "update-message",
           InsertionMode = InsertionMode.Replace,
           HttpMethod = "POST",
           OnSuccess = "updateSuccess"
       }, new { @id="updateRoleForm" }
    ))
{
    @Html.ValidationSummary(true)
 <div id="update-message" class="error invisible"></div>
       <fieldset>
        <legend>Role</legend>

        @Html.HiddenFor(model => model.roleidPK)

        <div class="editor-label">
            @Html.LabelFor(model => model.Rolename)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Rolename)
            @Html.ValidationMessageFor(model => model.Rolename)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RoleDescription)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RoleDescription)
            @Html.ValidationMessageFor(model => model.RoleDescription)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.datecreated)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.datecreated)
            @Html.ValidationMessageFor(model => model.datecreated)
        </div>
    </fieldset>
}
